$OpenBSD: patch-src_Makefile_in,v 1.4 2013/06/11 10:30:54 sthen Exp $
--- src/Makefile.in.orig	Mon May 27 23:37:36 2013
+++ src/Makefile.in	Mon Jun 10 17:44:28 2013
@@ -166,30 +166,15 @@ install:
 	done
 	$(RM) -f $(DESTDIR)$(includedir)/ecl/config.h
 	mv $(DESTDIR)$(includedir)/ecl/config-install.h $(DESTDIR)$(includedir)/ecl/config.h
+	$(INSTALL_DATA) help.doc $(DESTDIR)$(ecldir)
 	$(INSTALL_SCRIPT) bin/ecl-config $(DESTDIR)$(bindir)
-	for i in build-stamp help.doc TAGS ; do \
-	  $(INSTALL_DATA) $$i $(DESTDIR)$(ecldir); \
-	done
-	for i in $(LSP_LIBRARIES) $(LIBRARIES); do \
-	  if test -s $$i ; then \
-	   if echo $$i | grep dll; then \
-	    $(INSTALL_LIBRARY) $$i $(DESTDIR)$(bindir); \
-	   fi; \
-	   $(INSTALL_LIBRARY) $$i $(DESTDIR)$(libdir); \
-	  fi \
-	done
-	if [ "x@SONAME@" != "x" -a -f "@SONAME@" ]; then \
-	  ( cd $(DESTDIR)$(libdir) && $(RM) -f @SONAME3@ @SONAME2@ @SONAME1@ && \
-	    mv @SONAME@ @SONAME3@ && \
-	    $(LN_S) @SONAME3@ @SONAME2@ && \
-	    $(LN_S) @SONAME3@ @SONAME1@ && \
-	    $(LN_S) @SONAME3@ @SONAME@ ) \
-	fi
+	${INSTALL_LIBRARY} libecl.so $(DESTDIR)$(libdir)/$(LSP_LIBRARIES)
+	cd $(DESTDIR)$(libdir) && ln -sf $(LSP_LIBRARIES) libecl.so
 	$(INSTALL_PROGRAM) c/dpp$(EXE) $(DESTDIR)$(ecldir)
 	$(INSTALL_PROGRAM) ecl_min$(EXE) $(DESTDIR)$(ecldir)
 	for i in `cat modules`; do \
 	  case $$i in \
-	    *.fas) $(INSTALL_PROGRAM) $$i $(DESTDIR)$(ecldir);; \
+	    *.fas) $(INSTALL_DATA) $$i $(DESTDIR)$(ecldir);; \
 	    *) $(INSTALL_DATA) $$i $(DESTDIR)$(ecldir);; \
 	  esac \
 	done
